﻿////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// <copyright>Copyright 2008-2011 Andreas Huber Doenni</copyright>
// Distributed under the Microsoft Public License (Ms-PL).
// See accompanying file License.txt or copy at http://mews.codeplex.com/license.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

namespace Mews.Net
{
    using System;

    /// <summary>The exception that is thrown when a server answers with a response code that is neither one of the
    /// known codes indicating an error (see <see cref="ICommand{T}.ThrowOnError"/> implementation) nor one of the codes
    /// expected for success.</summary>
    /// <threadsafety static="true" instance="false"/>
    public sealed class UnexpectedResponseException : ClientBaseException
    {
        /// <summary>Initializes a new instance of the <see cref="UnexpectedResponseException"/> class.</summary>
        public UnexpectedResponseException() : this(null, null)
        {
        }

        /// <summary>Initializes a new instance of the <see cref="UnexpectedResponseException"/> class.</summary>
        public UnexpectedResponseException(string message) : this(message, null)
        {
        }

        /// <summary>Initializes a new instance of the <see cref="UnexpectedResponseException"/> class.</summary>
        public UnexpectedResponseException(string message, Exception innerException) : base(message, innerException)
        {
        }
    }
}
